package com.supermarket_project.service;


import com.supermarket_project.common.R;
import com.supermarket_project.pojo.Goods;

import java.util.List;

/**
 * (Goods)表服务接口
 *
 * @author makejava
 * @since 2022-07-08 16:08:39
 */
public interface GoodsService{

    R addGoods(Goods goods);

    R pageGoods(int pageNum, int pageSize, Integer gCategoryId, String goodsName, String barcode);

    R updateGoods(Goods goods);

    R queryGoods(int goodsId);

    R deleteGoods(int goodsId);

    R lockGoods(int goodsId, int status);

    List<Goods> queryGoodsByCategoryId(Integer categoryId);
}

